package com.siyuan1.siyuan;

import com.siyuan1.spring.*;

/**
 * @className: UserService
 * @Description: TODO
 * @author: wzq
 * @date: 2022/8/24 10:52
 */
@SiyuanComponent("useraService")
//@SiyuanScope("prototype")
public class UserService implements SiyuanInitializingBean,SiyuanBeanNameAware {


//	@SiyuanAutowired
//	private OrderService orderService;

	private String beanName;

	@SiyuanValue("valueSiyuan")
	private String siyuanValue;

	@Override
	public void setBeanName(String name) {
		this.beanName = name;
	}

	public void test(){
		System.out.println(this);
//		System.out.println(orderService);
		System.out.println(beanName+" beanName");
		System.out.println(this.siyuanValue);
	}

	@Override
	public void afterPropertiesSet() throws Exception {
//		System.out.println("初始化");
	}
}
